<div class="box-login">
    <h3>Login</h3>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'login-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
        'action' => array('/site/login')
    ));
    ?>
    <?php echo $form->textField($model, 'username'); ?>

    <?php echo $form->error($model, 'username') ?>

    <?php echo $form->passwordField($model, 'password'); ?>

    <?php echo $form->error($model, 'password') ?>
    <br/>
    <span>
        <?php echo $form->checkBox($model, 'rememberMe'); ?> Remember me next time
    </span>
    <p>
        Forgot your password? Click <a href="<?php echo url('/user/forgot') ?>">here</a> to recovery password
    </p>
    <p>
        <input type="submit" value="Login" class="but-sign" />
    </p>
    <?php $this->endWidget(); ?>
</div><!--box-login-->